package com.easymall.domain;

public class Prod {

    public static final int STATUS_NORMAL = 0;
    public static final int STATUS_DELETE = 1;
    public static final int STATUS_DISABLE = 2;

    private Integer id;
    private String name;
    private String description;
    private String imgUrl;
    private Category category;
    private int status;

    public Prod() {
    }

    public Prod(Integer id, String name, String description, String imgUrl, Category category, int status) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.imgUrl = imgUrl;
        this.category = category;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Prod{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", category=" + category +
                ", status=" + status +
                '}';
    }
}
